home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / opcodes / makefile < prev    next >
Encoding:
Makefile  |  1994-12-17  |  5.8 KB  |  205 lines

  1. # Makefile generated by "configure.bat"
  2. #    Makefile template for Configure for the opcodes library.
  3. #    Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  4. #    Written by Cygnus Support.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. srcdir = .
  18.  
  19. prefix = /usr/local
  20.  
  21. exec_prefix = $(prefix)
  22. bindir = $(exec_prefix)/bin
  23. libdir = $(exec_prefix)/lib
  24.  
  25. datadir = $(prefix)/lib
  26. mandir = $(prefix)/man
  27. man1dir = $(mandir)/man1
  28. man2dir = $(mandir)/man2
  29. man3dir = $(mandir)/man3
  30. man4dir = $(mandir)/man4
  31. man5dir = $(mandir)/man5
  32. man6dir = $(mandir)/man6
  33. man7dir = $(mandir)/man7
  34. man8dir = $(mandir)/man8
  35. man9dir = $(mandir)/man9
  36. infodir = $(prefix)/info
  37. includedir = $(prefix)/include
  38. oldincludedir =
  39. docdir = $(srcdir)/doc
  40.  
  41. SHELL = /bin/sh
  42.  
  43. INSTALL = `cd $(srcdir)/..; pwd`/install.sh -c
  44. INSTALL_PROGRAM = $(INSTALL)
  45. INSTALL_DATA = $(INSTALL)
  46.  
  47. AR = ar
  48. AR_FLAGS = qc
  49. CFLAGS = -g
  50. BISON = bison
  51. MAKEINFO = makeinfo
  52. RANLIB = ranlib
  53.  
  54. INCDIR = $(srcdir)/../include
  55. BFDDIR = $(srcdir)/../bfd
  56. CSEARCH = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR)
  57. DEP = mkdep
  58.  
  59.  
  60. TARGETLIB = libopcodes.a
  61.  
  62. # To circumvent a Sun make VPATH bug, each file listed here
  63. # should also have a foo.o: foo.c line further along in this file.
  64.  
  65. ALL_MACHINES = a29k-dis.o alpha-dis.o h8300-dis.o h8500-dis.o \
  66.     hppa-dis.o i386-dis.o i960-dis.o m68k-dis.o \
  67.     m88k-dis.o mips-dis.o mips-opc.o sh-dis.o sparc-dis.o \
  68.     sparc-opc.o z8k-dis.o ns32k-dis.o ppc-dis.o ppc-opc.o \
  69.     arm-dis.o
  70.  
  71. # BFD_MACHINES is set by configure.in.
  72. OFILES = $(BFD_MACHINES) dis-buf.o disassemble.o
  73.  
  74. #### host and target dependent Makefile fragments come in here.
  75. BFD_MACHINES=i386-dis.o
  76. ARCHDEFS=-DARCH_i386
  77. ###
  78.  
  79. FLAGS_TO_PASS = \
  80.     "against=$(against)" \
  81.     "AR=$(AR)" \
  82.     "AR_FLAGS=$(AR_FLAGS)" \
  83.     "CC=$(CC)" \
  84.     "CFLAGS=$(CFLAGS)" \
  85.     "RANLIB=$(RANLIB)" \
  86.     "MAKEINFO=$(MAKEINFO)" \
  87.     "INSTALL=$(INSTALL)" \
  88.     "INSTALL_DATA=$(INSTALL_DATA)" \
  89.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  90.     "BISON=$(BISON)"
  91.  
  92. .c.o:
  93.     $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  94.  
  95.  
  96. # C source files that correspond to .o's.
  97. CFILES = i386-dis.c z8k-dis.c m68k-dis.c mips-dis.c ns32k-dis.c ppc-dis.c
  98.  
  99. STAGESTUFF = $(TARGETLIB) $(OFILES)
  100.  
  101. all: $(TARGETLIB) 
  102.  
  103.  
  104. .NOEXPORT:
  105.  
  106. installcheck check:
  107.  
  108. info:
  109. clean-info:
  110. install-info:
  111. dvi:
  112.  
  113. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  114.  
  115.  
  116. $(TARGETLIB): $(OFILES)
  117.     -rm -f $(TARGETLIB)
  118.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  119.      $(RANLIB) $(TARGETLIB)
  120.  
  121. disassemble.o: disassemble.c $(INCDIR)/dis-asm.h
  122.     $(CC) -c $(CFLAGS) $(ARCHDEFS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
  123.  
  124. a29k-dis.o: a29k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/a29k.h
  125. dis-buf.o: dis-buf.c $(INCDIR)/dis-asm.h
  126. h8500-dis.o: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h
  127. h8300-dis.o: h8300-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/h8300.h
  128. i386-dis.o: i386-dis.c $(INCDIR)/dis-asm.h
  129. i960-dis.o: i960-dis.c $(INCDIR)/dis-asm.h
  130. m68k-dis.o: m68k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/floatformat.h \
  131.     $(INCDIR)/opcode/m68k.h
  132. mips-dis.o: mips-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/mips.h
  133. mips-opc.o: mips-opc.c $(INCDIR)/opcode/mips.h
  134. ppc-dis.o: ppc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ppc.h
  135. ppc-opc.o: ppc-opc.c $(INCDIR)/opcode/ppc.h
  136. sparc-dis.o: sparc-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/sparc.h
  137. sparc-opc.o: sparc-opc.c $(INCDIR)/opcode/sparc.h
  138. z8k-dis.o: z8k-dis.c z8k-opc.h $(INCDIR)/dis-asm.h
  139. ns32k-dis.o: ns32k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
  140. sh-dis.o: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h
  141. alpha-dis.o: alpha-dis.c alpha-opc.h $(INCDIR)/dis-asm.h
  142. hppa-dis.o: hppa-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/hppa.h
  143. m88k-dis.o: m88k-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/m88k.h
  144. arm-dis.o: arm-dis.c arm-opc.h $(INCDIR)/dis-asm.h
  145.  
  146. tags etags: TAGS
  147.  
  148. TAGS: force
  149.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  150.  
  151. MOSTLYCLEAN = *.o core *.E *.p *.ip
  152. mostlyclean:
  153.     -rm -rf $(MOSTLYCLEAN)
  154. clean:
  155.     -rm -f *.a $(MOSTLYCLEAN)
  156. distclean: clean
  157.     -rm -rf Makefile config.status sysdep.h TAGS
  158. clobber realclean: distclean
  159.  
  160. # Mark everything as depending on config.status, since the timestamp on
  161. # sysdep.h might actually move backwards if we reconfig and relink it
  162. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  163. RECONFIG = config.status
  164.  
  165.  
  166.  
  167. # This target should be invoked before building a new release.
  168. # 'VERSION' file must be present and contain a string of the form "x.y"
  169. #
  170. roll:
  171.     @V=`cat VERSION`        ; \
  172.     MAJ=`sed 's/\..*//' VERSION`    ; \
  173.     MIN=`sed 's/.*\.//' VERSION`    ; \
  174.     V=$$MAJ.`expr $$MIN + 1`    ; \
  175.     -rm -f VERSION            ; \
  176.     echo $$V >VERSION        ; \
  177.     echo Version $$V
  178.  
  179. # Dummy target to force execution of dependent targets.
  180. #
  181. force:
  182.  
  183. install:
  184.     $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
  185.     $(RANLIB) $(libdir)/libopcodes.a
  186.  
  187. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  188.     $(SHELL) ./config.status
  189.  
  190. dep: $(CFILES)
  191.     mkdep $(CFLAGS) $?
  192.  
  193.  
  194. # What appears below is generated by a hacked mkdep using gcc -MM.
  195.  
  196. # DO NOT DELETE THIS LINE -- mkdep uses it.
  197. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  198.  
  199.  
  200. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  201.  
  202.